
mod rust_language;
mod rust_example;

fn main() {
    println!("Hello, world!");

    // let定义的变量默认是不可变的
    let let_name = 10;
    // mut修饰给改成可变的
    let mut mut_name = 10;

    let _unused = "";

    const CONST_NAME: &str = "";

    for i in 1..=5 {
        println!("{}", i);
    }

    let s0 = String::from("hello");
    let s1 = s0;
    println!("{}", s1);
    let s2 = s1.clone();
    println!("{}", s2);
}
